<?php
/***************************************************************************
 * 
 * Copyright (c) 2010 , Inc. All Rights Reserved
 * $Id$:ConfTest.php,2010/05/13 14:10:13 
 * 
 **************************************************************************/
 
 
 
/**
 * @file ConfTest.php
 * @author huqingping
 * @date 2010/05/13 14:10:13
 * @version 1.0 
 * @brief 
 *  
 **/

require_once 'apiproxy/HttpRpcProxy.php';

final class HttpRpcProxyTest extends PHPUnit_Framework_TestCase
{
	function testHttpProxy()
	{
		$proxy = new HttpRpcProxy('mod');
		$proxy->init(array(),'aa');
		$this->assertTrue($proxy->cacheable());
		$ret = $proxy->call('concat',array(1,'2'));
		$this->assertEquals('/_private/rpc/mod.concat21',$ret);

		$ret = $proxy->call('_fetch',array('url',array(1,'2')));
		$this->assertEquals('url2',$ret);

	}

}





/* vim: set ts=4 sw=4 sts=4 tw=100 noet: */
?>
